package com.bingxue.edu.teacher.model.resp;

import com.bingxue.edu.management.education.model.entity.ArrangeTemplate;
import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.bingxue.edu.management.education.model.entity.TimeTemplate;
import com.mybatisflex.annotation.RelationManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author panbo
 * @since 2024/11/8
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TeacherClassInfoResp extends ClassInfo {

    @RelationManyToOne(selfField = "arrangeTemplateId", targetTable = "edu_arrange_template", targetField = "id")
    private ArrangeTemplate arrangeTemplate;

    @RelationManyToOne(selfField = "timeTemplateId", targetTable = "edu_time_template", targetField = "id")
    private TimeTemplate timeTemplate;

    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    private String campusName;

    @RelationManyToOne(selfField = "classroomId", targetTable = "edu_classroom", targetField = "id", valueField = "name")
    private String classroomName;

}
